package cn.wolfcode.wolf2w.repository;

import cn.wolfcode.wolf2w.domain.Banner;
import cn.wolfcode.wolf2w.domain.Region;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

//游记推荐
public interface BannerRepsitory extends MongoRepository<Banner,String> {


    //首页查询游记前5
    List<Banner> findByTypeAndState(int type, int stateNormal, Pageable pageable);
}

